package com.zzw.design.singleton;

public class SingletonTest {

	private static SingletonTest singletonTest = null;
	
	private SingletonTest(){}
	
	public static SingletonTest getInstance(){
		if(singletonTest == null){
			synchronized(singletonTest){
				if(singletonTest == null){
					return new SingletonTest();
				}
			}
		}
		return singletonTest;
	}
}